<?php
   /*
   Plugin Name: Fetch oDesk History
   Plugin URI: http://lehoaian.info
   Description: a plugin to fetch jobs history from oDesk profile.
   Version: 1.0
   Author: An Le
   Author URI: http://lehoaian.info
   License: GPL2
   */
?>
<?php
    require('oDeskAPI.lib.php');
    add_action('admin_init', 'ofj_init');
    
    // add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $function, $icon_url, $position ); 
    function ofj_init() {
        // Add admin page
        add_menu_page( 'oDesk Fetch Jobs', 'oDesk Fetch Jobs', 'manage_options', 'odesk-project-history/odesk_project_history.php', 'ofj_admin_page');  
    }
    
    function ofj_admin_page() {
        echo "<h2>" . __( 'Test Settings', 'ofj' ) . "</h2>";
    }
    

    add_action('admin_menu', 'register_custom_menu_page');

    function register_custom_menu_page() {
       add_menu_page('custom menu title', 'custom menu', 'add_users', 'myplugin/myplugin-index.php', '',   plugins_url('myplugin/images/icon.png'), 6);
    }

    function custom_menu_page(){
       echo "Admin Page Test";	
    }

?>